<!--
HTML片段，嵌入弹窗中使用
注：在需要使用id的地方，请取st_jsid参数<?php echo $_GET['st_jsid']; ?>做前缀，避免影响到主页面
-->
<!--添加权限-->
<form action="{%:U('/admin/admin/savemenu')%}" onsubmit="return false" stverify="true" erroappend="true" ajaxpost="true" method="POST">
  <table class="table table-listing">
    <tbody>
    <tr>
      <td class="span4"><span class="text-red">*</span>目录名字：</td>
      <td>
          <input class="input" type="text"  byteml="true" name="name" opt="rq ml" ml="1-100" value="{%$menuInfo['name']%}"/>
          <input class="input" type="text" name="id" hidden='true' value="{%$menuInfo['id']%}"/>
          <input class="input" type="text" name="class_id" hidden='true' value="{%$menuInfo['class_id']%}"/>
      </td>
    </tr>
     <tr>
      <td class="span4">一级目录：</td>
      <td>
          <select class="st-dropdown" name="menuM_id" data-config="inBox:true,subId:'suboption1_<?php echo $_GET['st_jsid']; ?>'">
            <option value="0">所有</option>
           {%notempty name="menuMainList"%}
            {%foreach name="menuMainList" item="vo"%}
            <option value="{%$vo.class_id%}"
                 {%if condition="$menuM_id eq $vo['class_id']" %} selected {%/if%}>{%$vo.name%}</option>
            {%/foreach%}
           {%/notempty%}
          </select>
      </td>
    </tr>
    <tr>
      <td class="span4">二级目录：{%$subShow%}</td>
      <td>
          <select class="st-dropdown" name="menuS_id" id="suboption1_<?php echo $_GET['st_jsid']; ?>"  data-config="inBox:true,subId:'suboption2_<?php echo $_GET['st_jsid']; ?>'">
            <option value="0">所有</option>
           {%notempty name="menuSubList"%}
            {%foreach name="menuSubList" item="vo"%}
            <option value="{%$vo.class_id%}"
                 {%if condition="$menuS_id eq $vo['class_id']" %} selected {%/if%}>{%$vo.name%}</option>
            {%/foreach%}
           {%/notempty%}
          </select>
      </td>
    </tr>
    </tbody>
  </table>
</form>